<template>
	<div class="kComponent notice" >
		<!-- 公告 -->
		<uni-notice-bar :text="datas.noticeText" scrollable showIcon :background-color="datas.backColor"
			:color="datas.textColor" />

		<!-- 删除组件 -->
		<slot name="deles" />
	</div>
</template>

<script>
	export default {
		name: 'notice',
		watch: {
			'$store.state.$currentproperties': {
				handler(nval, oval) {
					console.log(nval); //nval改变后的新数据，oval改变前的旧数据
				},
				deep: true, // 深度监听
				immediate: true, //立即执行
			},

		},
		props: {
			datas: Object,
		},
		
		data() {
			return {
				id: null, //当前页面
				// selected: true, //删除标签显示
				index: null, //当前选中的index
		
			}
		},
	}
</script>

<style scoped lang="scss">
	.notice {
		
		::v-deep  .uni-noticebar {
			height: 40px;
			padding: 0px 12px;
			margin-bottom: 0px;
		}
	}
</style>